package com.audaque.encoding.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 赋码请求相关
 * </p>
 *
 * @author mayong
 * @since 2024-04-03
 */
@Data
@Builder
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_request_new")
@Schema(name = "RequestNewDO", description = "赋码请求记录")
public class RequestNewDO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "配置表id")
    @TableField("table_config_id")
    private String tableConfigId;

    @Schema(description = "合计数据行")
    @TableField("sum")
    private Integer sum;

    @Schema(description = "赋码请求的文件id")
    @TableField("req_file_id")
    private String reqFileId;

    @Schema(description = "赋码请求文件名")
    @TableField("req_filename")
    private String reqFilename;

    @Schema(description = "开始赋码请求的时间")
    @TableField("req_time")
    private LocalDateTime reqTime;

}
